import 'package:get/get.dart';
import 'package:situation/data/request/intell_request.dart';

import 'state.dart';

class IntellDetailController extends GetxController {
  final IntellDetailState state = IntellDetailState();


  String id = Get.arguments['id'];


  @override
  void onInit() {
    // TODO: implement onInit
    super.onInit();
    initData();
  }

  void initData() async {
    var data = await IntellRequest.getIntellDetail(id);
    state.intellDetail = data['data'];
  }
}
